home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16095 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  728 b 

  1. Path: pub.news.uk.psi.net!usenet
  2. From: andrew oxenburgh <andrew.oxenburgh@private.nethead.co.uk>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Small question
  5. Date: 7 Apr 1996 09:32:01 GMT
  6. Organization: PSINet UK Public Usenet Site
  7. Message-ID: <4k822h$s8t@pub.news.uk.psi.net>
  8. NNTP-Posting-Host: ip17.videotron.usr1.nethead.co.uk
  9.  
  10. sence@ava.taby.se (Bjorn Osterman) writes:
  11. > If I have 2 cpp files and i use the same global variable that i define
  12. > in some file that both cpp-files includes. How do I tell the compiler
  13. > that the variable is the same and that it shouldn't make space 2
  14. > times?
  15. >   // bjorn@ava.taby.se
  16. >   // http://www.ava.taby.se/www/sence
  17.  
  18.  
  19. Bjorn,
  20.  
  21. Put the global once in a common header????
  22.  
  23. chz
  24.  
  25. andrewo
  26.